<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->

<Window x:Class="ShellObjectDragAndDropDemo.DragAndDropWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Background="PeachPuff"
    Title="ShellObject Drag and Drop Demo" Height="300" Width="300" AllowDrop="True" Loaded="Window_Loaded">
    <Window.Resources>
        <DataTemplate x:Key="ListBoxItemTemplate">
            <StackPanel Margin="5,2,5,2" Orientation="Horizontal" MouseLeftButtonDown="OnMouseLeftButtonDown" >
                <Image Source="{Binding Thumbnail.BitmapSource}" Height="32"/>
                <TextBlock Background="Transparent" FontSize="18" Margin="4" VerticalAlignment="Center" Text="{Binding Name}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid Margin="10" Background="White" Name="DropSource">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center">Drag and Drop files to/from this window.</TextBlock>
        <ListBox Name="DropDataList" ItemTemplate="{StaticResource ListBoxItemTemplate}" Grid.Row="1" Background="AliceBlue" SelectionMode="Extended" />
    </Grid>
</Window>
